//
//  FZUploadFile.h
//  Pods
//
//  Created by liuyong on 15/8/6.
//
//

#import <Foundation/Foundation.h>
#import "SRLoginUser.h"
#import "QiniuSDK.h"
#import "QNUploadManager.h"


typedef void(^UploadPercent)(NSString *key, float percent);
typedef void(^ResponseInfoBlock)(QNResponseInfo *info, NSString *key, NSDictionary *resp);
typedef BOOL(^CancelBlock)(void);


@interface SRUploadQiniuManager : NSObject
@property(nonatomic,strong)QNUploadManager* uploadManager;


+(SRUploadQiniuManager*)sharedInstance;

-(void)uploadFileToQiNiuForPath:(NSString*)filePath key:(NSString*)key uploadToken:(NSString*)token UploadPercent:(UploadPercent)percentBlock responseBlock:(ResponseInfoBlock)responseBlock;

- (void)uploadFileToQiNiuForPath:(NSString*)filePath key:(NSString*)key uploadToken:(NSString*)token UploadPercent:(UploadPercent)percentBlock cancelBlock:(CancelBlock)cancelBlock responseBlock:(ResponseInfoBlock)responseBlock;

-(void)uploadTalkingFileToQiNiuForPath:(NSString*)filePath UploadPercent:(UploadPercent)percentBlock responseBlock:(ResponseInfoBlock)responseBlock;

@end
